<include file="public/header" />
</head>
<body>
	<div class="wrap js-check-wrap">

		<ul class="nav nav-tabs">
			<include file="admin_index/_nav" active="column"/>
			<div class="col-sm-8 text-right">
				<a class="btn btn-success" href="{:cmf_plugin_url('Modules://AdminIndex/add')}">+ 添加栏目</a>
			</div>
		</ul>

		<br/>
		<div class="row">
			<div class="col-md-2 tabbable tabs-left">
				<!-- Nav tabs -->
				<ul class="nav nav-tabs nav-pills nav-stacked" role="tablist">
					<volist name="authmodules" id="vo">
						<li <if condition="$vo['id'] eq $modules_id">class="active"</if> >
							<a  href="{:cmf_plugin_url('Modules://AdminColumn/lists',array('modules_id'=>$vo['id']))}"> {$vo.name}</a>
						</li>
					</volist>
				</ul>
			</div>

			<div class="col-md-10">
				<form class="form-horizontal js-ajax-form" action="{:cmf_plugin_url('Modules://AdminColumn/listOrders',array('modules_id'=>$modules_id))}" method="post">
					<table class="table table-hover table-bordered table-list">
						<thead>
						<tr>
							<th width="5%">{:lang('SORT')}</th>
							<th width="5%">ID</th>
							<th >栏目名称</th>
							<th >模块</th>
							<th >栏目描述</th>
							<th >关键字</th>
							<th width="5%">状态</th>
							<th width="15%">管理操作</th>
						</tr>
						</thead>
						<foreach name="column" item="vo">
							<tr>
								<td><input name='list_orders[{$vo.id}]' type='text' size='3' value='$list_order' class='input input-order'></td>
								<td>{$vo.id}</td>
								<td>{$vo.name}</td>
								<td>{$modules[$vo.modules_id]}</td>
								<td>{$vo.description}</td>
								<td>{$vo.keyword}</td>
								<td>
									<if condition="$vo['status'] eq 1">
										显示
										<else />
										隐藏
									</if>
								</td>
								<td>
									<a href="{:cmf_plugin_url('Modules://AdminColumn/edit',array('id'=>$vo['id'],'modules_id'=>$modules_id))}">编辑</a> |
									<a class="js-ajax-delete" href="{:cmf_plugin_url('Modules://AdminColumn/delete',array('id'=>$vo['id'],'modules_id'=>$modules_id))}">删除</a>
								</td>
							</tr>
						</foreach>
					</table>
				</form>
			</div>
		</div>
	</div>
	<script src="__PLUGIN_TMPL__/public/assets/js/admin.js"></script>
</body>
</html>